.class Lcom/example/m6wmr/LoginActivity$23;
.super Ljava/lang/Thread;
.source "LoginActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/LoginActivity;->login()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/LoginActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/LoginActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    .line 1133
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 1135
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 1137
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v12, v12, Lcom/example/m6wmr/LoginActivity;->loginview:Landroid/view/View;

    const v13, 0x7f0c02a1

    invoke-virtual {v12, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/EditText;

    .line 1138
    .local v3, "login_name":Landroid/widget/EditText;
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v12, v12, Lcom/example/m6wmr/LoginActivity;->loginview:Landroid/view/View;

    const v13, 0x7f0c02a2

    invoke-virtual {v12, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/EditText;

    .line 1139
    .local v4, "login_pwd":Landroid/widget/EditText;
    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v12

    invoke-interface {v12}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v12

    .line 1140
    const-string v13, "%"

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, " "

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6

    .line 1141
    .local v6, "name":Ljava/lang/String;
    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v12

    invoke-interface {v12}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v12

    .line 1142
    const-string v13, "%"

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, " "

    const-string v14, ""

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v8

    .line 1143
    .local v8, "pwd":Ljava/lang/String;
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    const-string v13, "userInfo"

    .line 1144
    const/4 v14, 0x0

    .line 1143
    invoke-virtual {v12, v13, v14}, Lcom/example/m6wmr/LoginActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v7

    .line 1145
    .local v7, "preferences":Landroid/content/SharedPreferences;
    const-string v12, "xingetoken"

    const-string v13, ""

    invoke-interface {v7, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 1147
    .local v0, "BaiduAppId":Ljava/lang/String;
    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v13, v13, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v13}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v13, "/index.php?ctrl=app&action=appMemlogin&uname="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 1148
    invoke-virtual {v12, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&pwd="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&userid="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&datatype=json"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 1147
    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    .line 1150
    .local v10, "url":Ljava/lang/String;
    const-string v12, "Loginactivity"

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "login() "

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1151
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v12, v12, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-static {v10, v12}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v9

    .line 1152
    .local v9, "str":Ljava/lang/String;
    const-string v12, "Loginactivity"

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "data() "

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1155
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 1158
    .local v5, "msg":Landroid/os/Message;
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v9}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 1159
    .local v2, "json":Lorg/json/JSONObject;
    const-string v12, "error"

    invoke-virtual {v2, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, "true"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 1162
    const-string v12, "msg"

    invoke-virtual {v2, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1163
    const/4 v12, 0x1

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 1164
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1196
    .end local v2    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 1167
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v12, "msg"

    invoke-virtual {v2, v12}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 1169
    const-string v12, "(((((("

    invoke-virtual {v2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1170
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    const-string v13, "userInfo"

    const/4 v14, 0x0

    invoke-virtual {v12, v13, v14}, Lcom/example/m6wmr/LoginActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v11

    .line 1171
    .local v11, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "uid"

    const-string v14, "uid"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1172
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "username"

    const-string v14, "username"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1173
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "score"

    const-string v14, "score"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1174
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "cost"

    const-string v14, "cost"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1175
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "pass"

    invoke-interface {v12, v13, v8}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1176
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "phone"

    const-string v14, "phone"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1177
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "logo"

    const-string v14, "logo"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1178
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "juancount"

    const-string v14, "juancount"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1180
    invoke-interface {v11}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    const-string v13, "temppassword"

    const-string v14, "temp_password"

    invoke-virtual {v2, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v12, v13, v14}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v12

    invoke-interface {v12}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1183
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v12, v12, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    const-string v13, ""

    invoke-virtual {v12, v13}, Lmyapp/MyApp;->setlogintype(Ljava/lang/String;)V

    .line 1184
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v12, v12, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    const-string v13, ""

    invoke-virtual {v12, v13}, Lmyapp/MyApp;->setloginphone(Ljava/lang/String;)V

    .line 1185
    const/4 v12, 0x2

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 1187
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 1188
    .end local v2    # "json":Lorg/json/JSONObject;
    .end local v11    # "userInfo":Landroid/content/SharedPreferences;
    :catch_0
    move-exception v1

    .line 1190
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 1191
    const/4 v12, 0x4

    iput v12, v5, Landroid/os/Message;->arg1:I

    .line 1193
    iget-object v12, p0, Lcom/example/m6wmr/LoginActivity$23;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1201
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1202
    monitor-exit p0

    return-void

    .line 1201
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
